package edu.stanford.bmir.protege.web.client.rpc.stkosutil.cutter;

import java.io.Serializable;

import edu.stanford.bmir.protege.web.client.rpc.stkosutil.common.ItemSelector;
import edu.stanford.bmir.protege.web.client.rpc.stkosutil.common.MatchLevel;
import edu.stanford.bmir.protege.web.client.rpc.stkosutil.common.UtilEntityType;

public class CuttingOptions implements Serializable{
	private CuttingScope cuttingScope = CuttingScope.ALL_CLASSES;//裁切范围
	//以下两个属性，在cuttingScope == CuttingScope.SELECTED_CLASS_TREE或SELECTED_PROPERTY_TREE时需要赋值
	private String selectedEntityName = ""; //当前用户选中的条目的名称(ID)
	private UtilEntityType selectedEntityType = UtilEntityType.CLASS; //当前用户选中的条目的类型
	
	private CuttingMode cuttingMode = CuttingMode.REF_PROJECT;//裁切方式
	
	//以下2个属性，在cuttingMode==CuttingMode.REF_PROJECT时需要赋值
	private String refProjectName = ""; //参考工程名称
	private ItemSelector itemSelector = ItemSelector.MATCHED_ITEMS; //条目范围（匹配项|未匹配项）
	
	//以下2个属性，在cuttingMode==CuttingMode.SEARCH时需要赋值
	private String search = ""; //检索表达式
	private MatchLevel matchLevel= MatchLevel.CASE_INSENSITIVE; //匹配力度
	

	
	public CuttingScope getCuttingScope() {
		return cuttingScope;
	}
	public void setCuttingScope(CuttingScope cuttingScope) {
		this.cuttingScope = cuttingScope;
	}
	public CuttingMode getCuttingMode() {
		return cuttingMode;
	}
	public void setCuttingMode(CuttingMode cuttingMode) {
		this.cuttingMode = cuttingMode;
	}
	public String getRefProjectName() {
		return refProjectName;
	}
	public void setRefProjectName(String refProjectName) {
		this.refProjectName = refProjectName;
	}
	public String getSearch() {
		return search;
	}
	public void setSearch(String search) {
		this.search = search;
	}
	public MatchLevel getMatchLevel() {
		return matchLevel;
	}
	public void setMatchLevel(MatchLevel matchLevel) {
		this.matchLevel = matchLevel;
	}
	public ItemSelector getItemSelector() {
		return itemSelector;
	}
	public void setItemSelector(ItemSelector itemSelector) {
		this.itemSelector = itemSelector;
	}
	public String getSelectedEntityName() {
		return selectedEntityName;
	}
	public void setSelectedEntityName(String selectedEntityName) {
		this.selectedEntityName = selectedEntityName;
	}
	public UtilEntityType getSelectedEntityType() {
		return selectedEntityType;
	}
	public void setSelectedEntityType(UtilEntityType selectedEntityType) {
		this.selectedEntityType = selectedEntityType;
	}
	
	
}
